package com.vichat.common.exception;

/**
 * Created by wangly on 2018/8/26.
 */
public class ViChatException extends Exception {
    private String code;
    private Object[] values;

    public ViChatException() {
    }

    public ViChatException(String message, Throwable cause) {
        super(message, cause);
    }

    public ViChatException(String code, String msg) {
        super(msg);
        this.setCode(code);
    }

    public ViChatException(Throwable cause) {
        super(cause);
    }

    public ViChatException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Object[] getValues() {
        return values;
    }

    public void setValues(Object[] values) {
        this.values = values;
    }
}
